# 水仙花数
# for i in range(100,1000):
#     a = i // 100
#     b = i // 10 % 10
#     c = i % 10
#     if a ** 3 + b ** 3 + c ** 3 == i:
#         print(i)

# 完数：指一个正整数如果恰好等于它的所有除自身之外的正因数之和
# 如，6 的正因数有 1、2、3，而 1 + 2 + 3 = 6，因此 6 是一个完数。
# for i in range(1, 101):
#     sum = 0
#     for j in range(1, i):
#         if i % j == 0:
#             sum += j
#     if sum == i:
#         print(i)

# 质数
# for i in range(1, 100):
#     for j in range(2, i):
#         if i%j == 0:
#             break
#     else :
#             print(i)

# 打印菱形
# row = 9
# for i in range(1,row//2+1):
#     print(" "*(row//2-i+1))

#fib
# a,b=1,1
# for i in range(1,10):
#     if i == 1:
#         print(1)
#     elif i==2:
#         print(1)
#     else:
#         print(a+b)
#         a,b=b,a+b

#99
# for i in range(1,10):
#     for j in range(1,i+1):
#         print("%d*%d=%d" % (i,j,i*j),end=" ")
#     print()

#水仙花
# for i in range(100,1000):
#     a = i // 100
#     b = i // 10 %10
#     c = i % 10
#     if a**3+b**3+c**3 == i:
#         print(i)

#完数
# for i in range(1,100):
#     sum = 0
#     for j in range(1,i):
#         if i%j==0:
#             sum+=j
#     if sum==i:
#         print(i)

# 质数
# for i in range(1,100):
#     for j in range(2,i):
#         if i%j==0:
#             break
#     else:
#         print(i)

# 打印菱形
row = 9
for i in range(1,row//2+2):
    print(' '*(row//2+2-i)+'*'*(2*i-1))
for j in range(row//2,0,-1):
    print(' '*(row//2+2-j)+'*'*(2*j-1))



for a in range(1,5):
    print(a)
